import { ApiProperty } from '@nestjs/swagger';

export class CreateAndUpdateRoleDto {
  @ApiProperty({
    description: '角色名称',
    required: true,
  })
  roleName: string;

  @ApiProperty({
    description: '角色ID',
    required: false,
  })
  _id: string;

  @ApiProperty({
    description: '页面权限',
    default: [],
    required: true,
    type: [String],
  })
  limits?: string[];

  @ApiProperty({
    description: '角色描述',
    default: '',
  })
  description: string;

  @ApiProperty({
    description: '角色开关',
    default: true,
  })
  off: boolean;
}
